package com.atguigu.mybatis.bean;

import lombok.*;

@NoArgsConstructor   //为类提供空参构造器
@AllArgsConstructor  //为类提供全参构造器
//@Getter //为类的私有属性提供getter
//@Setter //为类的私有属性提供setter
//@ToString //生成toString方法
@Data  //@Getter  + @Setter   + @ToString
public class Employee {
    //0
    //private int id;
    private Integer id;
    private String lastName;
    private String gender;
    private String email;
    /*
    public void setLast_name(String n){
        lastName = n;
    }
     */
    public static void main(String[] args) {
        Employee employee = new Employee();

        Employee employee1 = new Employee(1,"Tom","male","tom@qq.com");

        System.out.println(employee1);
    }
}

//@NoArgsConstructor
//@AllArgsConstructor
//@Data
//public class Employee {
//    private Integer id;
//    private String lastName;
//    private String gender;
//    private String email;
//
//    public static void main(String[] args) {
//        Employee employee = new Employee();
//
//        Employee employee1 = new Employee(1,"tony","female","atguigu@qq.com");
//        System.out.println(employee1);
//    }
//}

//@NoArgsConstructor
//@AllArgsConstructor
//@Data
//public class Employee {
//    private Integer id;
//    private String lastName;
//    private String gender;
//    private String email;
//
//    public static void main(String[] args) {
//        Employee employee = new Employee();
//
//        Employee employee1 = new Employee(2,"lucy","male","etc@qq.com");
//        System.out.println(employee1);
//    }
//}